package labb1.del2;

import java.util.ArrayList;

/**
 * Test class
 *
 * @author Mikko Puustinen
 * @version 1.0, 2007-sep-17
 */
public class DelEtt {
    private DelEtt() {
        ArrayList<Card> hand = new ArrayList<Card>();
        Hand h = new Hand();

        Deck deck = new Deck();

        h.addCard(deck.getCard());
        h.addCard(deck.getCard());
        h.addCard(deck.getCard());
        h.addCard(deck.getCard());
        h.addCard(deck.getCard());

        for (int i = h.getNoOfCard(); i > 0; i--)
            System.out.println(h.showCard(i));
        h.sort();
        System.out.println("----------");
        /*for (int i = h.getNoOfCard(); i > 0; i--) {
            System.out.println(h.showCard(i));
        }*/
        h.getCard();
        h.getCard();
        h.getCard();
        h.getCard();
        h.getCard();
        try {
            h.getCard();
        } catch (NoSuchCardException e) {
            System.out.println(e.getMessage());
        }
    }

    public static void main(String[] args) {
        new DelEtt();
    }
}
